package com.jm.common.util;

import com.jm.common.enums.CMPP2ResultEnums;
import com.jm.common.enums.MobileOperatorEnum;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author:JianWu
 * @Date: 2025/1/13  17:48
 */
public class CMPP2ResultUtil {

    private static Map<Integer,String> operates = new HashMap<>();

    static {
        CMPP2ResultEnums[] cmpp2ResultEnums = CMPP2ResultEnums.values();
        for (CMPP2ResultEnums operatorEnum : cmpp2ResultEnums) {
            operates.put(operatorEnum.getResult(),operatorEnum.getMsg());
        }
    }

    public static String getResultMessage(Integer result){
        return operates.get(result);
    }
}
